package com.bw.permission.controller;

import com.bw.permission.config.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private KafkaTemplate kafkaTemplate;

    @GetMapping("kakfa")
    public AjaxResult test(){
        kafkaTemplate.send("test", "test");
        return AjaxResult.ok();
    }
}


